﻿package de.gameduell.framework.facebook.app.popups {
	import flash.events.Event;
	import flash.geom.Point;

	public class NewUserPopup extends PyramidBasePopup {

		public function NewUserPopup() {
			super("generic_1_button_header_content", "newUserPopup", 0, false);
			registerButton("okButton", skipTutorial);
		}
		
//		private function playTutorial(event:Event):void {
//			blocker.setColor(0x000000, 0);
//			pageManager.prepareTutorialStart();
//			_hideTween = null;
//			hide();
//		}
		
		private function skipTutorial(event:Event):void {
			localeData.setValue("tutorialCoinsNeeded", String(controller.gameData.pyramid.currentBrick.coinsNeeded));
			var popup:GameFlowMessagePopup = new GameFlowMessagePopup("tutorialSkippedPopup", 8000);
			popup.position = new Point(375,360);
			hide();
			popup.show();
		}
	}
}
